import { createRouter, createWebHistory } from 'vue-router';

// 导入页面组件
import IndexPage from '../views/IndexPage.vue';

// 定义路由
const routes = [
  {
    path: '/',
    name: 'index',
    component: IndexPage
  },
];

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;